package com.chenwut.threadDemo.threadsafe2;

/**
 * @author ChenPi
 * @since 2024/09/18 13:50
 */
public class ThreadDemo {
    public static void main(String[] args) {

        MyRunable mr = new MyRunable();
        Thread t1 = new Thread(mr);
        Thread t2 = new Thread(mr);
        Thread t3 = new Thread(mr);

        t1.setName("线程1");
        t2.setName("线程2");
        t3.setName("线程3");

        t1.start();
        t2.start();
        t3.start();
    }
}
